package com.pojo;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @Description  
 * @Author  LGH
 * @Date 2020-03-09 10:09:31 
 */

@Entity
@Table ( name ="orders" , schema = "")
@GenericGenerator(name="snowFlow",strategy = "com.pojo.id.SnowflowID")
public class Orders  implements Serializable {

	private static final long serialVersionUID =  4614170197488525819L;

	@Id
	@GeneratedValue(generator = "snowFlow")
   	@Column(name = "orderID" )
	private Long orderId;

   	@Column(name = "orderTime" )
	private Date orderTime;

   	@Column(name = "uid" )
	private Long uid;

   	@Column(name = "money" )
	private BigDecimal money;

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Date getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public Long getUid() {
		return this.uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	@Override
	public String toString() {
		return "{" +
					"orderId='" + orderId + '\'' +
					"orderTime='" + orderTime + '\'' +
					"uid='" + uid + '\'' +
					"money='" + money + '\'' +
				'}';
	}

}
